import { legacy_createStore as createStore, combineReducers, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import app from './modules/app'
import pro from './modules/pro'

const reducer = combineReducers({
  app,
  pro
})

// applyMiddleware(thunk) 应用异步模块
const store = createStore(reducer, applyMiddleware(thunk))

export default store
